<?php
// vim: fdm=marker

/**
 * 清除Runtime目录中的所有目录和文件
 */

$basePath  = '/web/newad';
$appPaths = array('A_f2', 'a', 'f', 's');
$cmd = '/bin/rm -rf ';

foreach($appPaths as $v) {
    $tmpPath = "{$basePath}/{$v}/Runtime/*";
    $tmpCmd  = $cmd . $tmpPath;
    @exec($tmpCmd);
    echo $tmpCmd . PHP_EOL;
}
